#!/bin/sh
date=`date +%Y%m%d`;
mkdir /mnt/data/wx/dwd_$date;
wget -nd -P /mnt/data/wx/dwd_$date -m -np -w 1 ftp://gds40429:rZWJoBFe@ftp-outgoing.dwd.de/gds/OBS/SYN/
wget -nd -P /mnt/data/wx/dwd_$date -m -np -w 1 ftp://gds40429:rZWJoBFe@ftp-outgoing.dwd.de/gds/OBS/TEMP/
wget -nd -P /mnt/data/wx/dwd_$date -m -np -w 1 ftp://gds40429:rZWJoBFe@ftp-outgoing.dwd.de/gds/OBS/SHIP/
cd /mnt/data/wx/
tar cf - dwd_$date | bzip2 -c > dwd_$date.tar.bz2 && rm -rf dwd_$date
